/**
 * Created by Freeman on 2018/1/20.
 */
import AppNavigation from '../../routes';

const initialState = AppNavigation.router.getStateForAction(AppNavigation.router.getActionForPathAndParams('Login'));

const navReducer = (state = initialState, action) => {
  const nextState = AppNavigation.router.getStateForAction(action, state);

  // Simply return the original `state` if `nextState` is null or undefined.
  return nextState || state;
};

export default navReducer
